<?php
/**
 * Parameters
 * @param	array				$work_items
 * @param	wfWorkflowWorkItem	$current_work_item
 */
  use_helper('Date');
  use_helper('Text');
?>
<?php slot('heading', 'Nachrichten')?>

		<div class="x5" id="inbox">
			<table class="data display datatable">
				<thead>
					<tr>
						<th>Betreff</th>
						<th>Datum</th>
					</tr>
				</thead>
				<tbody>
				<?php foreach($work_items as $i => $work_item):?>
					<tr>
						<td>
							
							<a href="<?php echo url_for('wf_workflow_inbox_message_show', $work_item->getObject());?>"><?php echo $work_item->getSubject()?></a></td>
							<?php if(!$work_item->getObject()->getIsRead()):?></strong><?php endif;?>
						<td><?php echo format_date($work_item->getObject()->getCreatedAt(), 'd. MMMM yyyy, H:mm')?> Uhr</td>
					</tr>
				<?php endforeach;?>
				</tbody>
			</table>
		</div>
		
		<div class="x7">

		</div>